var express = require('express');
var router = express.Router();
const { backendUserModel, roleModel, powerModel } = require('../../model/managementSystem');

router.get('/role', async(req, res) => {
    let data = await roleModel.find().populate('power_id');
    res.send({
        code: 200,
        message: 'success',
        data: data
    })
})


module.exports = router;
